home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / openssl / opensslconf.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-10-22  |  6.6 KB  |  250 lines

  1. /* opensslconf.h */
  2. /* WARNING: Generated automatically from opensslconf.h.in by Configure. */
  3.  
  4. /* OpenSSL was configured with the following options: */
  5. #ifndef OPENSSL_DOING_MAKEDEPEND
  6.  
  7. #ifndef OPENSSL_NO_CAMELLIA
  8. # define OPENSSL_NO_CAMELLIA
  9. #endif
  10. #ifndef OPENSSL_NO_CAPIENG
  11. # define OPENSSL_NO_CAPIENG
  12. #endif
  13. #ifndef OPENSSL_NO_CMS
  14. # define OPENSSL_NO_CMS
  15. #endif
  16. #ifndef OPENSSL_NO_GMP
  17. # define OPENSSL_NO_GMP
  18. #endif
  19. #ifndef OPENSSL_NO_IDEA
  20. # define OPENSSL_NO_IDEA
  21. #endif
  22. #ifndef OPENSSL_NO_KRB5
  23. # define OPENSSL_NO_KRB5
  24. #endif
  25. #ifndef OPENSSL_NO_MDC2
  26. # define OPENSSL_NO_MDC2
  27. #endif
  28. #ifndef OPENSSL_NO_RC5
  29. # define OPENSSL_NO_RC5
  30. #endif
  31. #ifndef OPENSSL_NO_RFC3779
  32. # define OPENSSL_NO_RFC3779
  33. #endif
  34. #ifndef OPENSSL_NO_SEED
  35. # define OPENSSL_NO_SEED
  36. #endif
  37. #ifndef OPENSSL_NO_TLSEXT
  38. # define OPENSSL_NO_TLSEXT
  39. #endif
  40.  
  41. #endif /* OPENSSL_DOING_MAKEDEPEND */
  42. #ifndef OPENSSL_THREADS
  43. # define OPENSSL_THREADS
  44. #endif
  45. #ifndef OPENSSL_NO_STATIC_ENGINE
  46. # define OPENSSL_NO_STATIC_ENGINE
  47. #endif
  48.  
  49. /* The OPENSSL_NO_* macros are also defined as NO_* if the application
  50.    asks for it.  This is a transient feature that is provided for those
  51.    who haven't had the time to do the appropriate changes in their
  52.    applications.  */
  53. #ifdef OPENSSL_ALGORITHM_DEFINES
  54. # if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
  55. #  define NO_CAMELLIA
  56. # endif
  57. # if defined(OPENSSL_NO_CAPIENG) && !defined(NO_CAPIENG)
  58. #  define NO_CAPIENG
  59. # endif
  60. # if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
  61. #  define NO_CMS
  62. # endif
  63. # if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
  64. #  define NO_GMP
  65. # endif
  66. # if defined(OPENSSL_NO_IDEA) && !defined(NO_IDEA)
  67. #  define NO_IDEA
  68. # endif
  69. # if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
  70. #  define NO_KRB5
  71. # endif
  72. # if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2)
  73. #  define NO_MDC2
  74. # endif
  75. # if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
  76. #  define NO_RC5
  77. # endif
  78. # if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
  79. #  define NO_RFC3779
  80. # endif
  81. # if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
  82. #  define NO_SEED
  83. # endif
  84. # if defined(OPENSSL_NO_TLSEXT) && !defined(NO_TLSEXT)
  85. #  define NO_TLSEXT
  86. # endif
  87. #endif
  88.  
  89. #define OPENSSL_CPUID_OBJ
  90.  
  91. /* crypto/opensslconf.h.in */
  92.  
  93. /* Generate 80386 code? */
  94. #undef I386_ONLY
  95.  
  96. #if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
  97. #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
  98. #define ENGINESDIR "/usr/lib/engines"
  99. #define OPENSSLDIR "/etc/ssl"
  100. #endif
  101. #endif
  102.  
  103. #undef OPENSSL_UNISTD
  104. #define OPENSSL_UNISTD <unistd.h>
  105.  
  106. #undef OPENSSL_EXPORT_VAR_AS_FUNCTION
  107.  
  108. #if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
  109. #define IDEA_INT unsigned int
  110. #endif
  111.  
  112. #if defined(HEADER_MD2_H) && !defined(MD2_INT)
  113. #define MD2_INT unsigned int
  114. #endif
  115.  
  116. #if defined(HEADER_RC2_H) && !defined(RC2_INT)
  117. /* I need to put in a mod for the alpha - eay */
  118. #define RC2_INT unsigned int
  119. #endif
  120.  
  121. #if defined(HEADER_RC4_H)
  122. #if !defined(RC4_INT)
  123. /* using int types make the structure larger but make the code faster
  124.  * on most boxes I have tested - up to %20 faster. */
  125. /*
  126.  * I don't know what does "most" mean, but declaring "int" is a must on:
  127.  * - Intel P6 because partial register stalls are very expensive;
  128.  * - elder Alpha because it lacks byte load/store instructions;
  129.  */
  130. #define RC4_INT unsigned int
  131. #endif
  132. #if !defined(RC4_CHUNK)
  133. /*
  134.  * This enables code handling data aligned at natural CPU word
  135.  * boundary. See crypto/rc4/rc4_enc.c for further details.
  136.  */
  137. #undef RC4_CHUNK
  138. #endif
  139. #endif
  140.  
  141. #if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
  142. /* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
  143.  * %20 speed up (longs are 8 bytes, int's are 4). */
  144. #ifndef DES_LONG
  145. #define DES_LONG unsigned long
  146. #endif
  147. #endif
  148.  
  149. #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
  150. #define CONFIG_HEADER_BN_H
  151. #define BN_LLONG
  152.  
  153. /* Should we define BN_DIV2W here? */
  154.  
  155. /* Only one for the following should be defined */
  156. /* The prime number generation stuff may not work when
  157.  * EIGHT_BIT but I don't care since I've only used this mode
  158.  * for debuging the bignum libraries */
  159. #undef SIXTY_FOUR_BIT_LONG
  160. #undef SIXTY_FOUR_BIT
  161. #define THIRTY_TWO_BIT
  162. #undef SIXTEEN_BIT
  163. #undef EIGHT_BIT
  164. #endif
  165.  
  166. #if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
  167. #define CONFIG_HEADER_RC4_LOCL_H
  168. /* if this is defined data[i] is used instead of *data, this is a %20
  169.  * speedup on x86 */
  170. #define RC4_INDEX
  171. #endif
  172.  
  173. #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
  174. #define CONFIG_HEADER_BF_LOCL_H
  175. #undef BF_PTR
  176. #endif /* HEADER_BF_LOCL_H */
  177.  
  178. #if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
  179. #define CONFIG_HEADER_DES_LOCL_H
  180. #ifndef DES_DEFAULT_OPTIONS
  181. /* the following is tweaked from a config script, that is why it is a
  182.  * protected undef/define */
  183. #ifndef DES_PTR
  184. #define DES_PTR
  185. #endif
  186.  
  187. /* This helps C compiler generate the correct code for multiple functional
  188.  * units.  It reduces register dependancies at the expense of 2 more
  189.  * registers */
  190. #ifndef DES_RISC1
  191. #define DES_RISC1
  192. #endif
  193.  
  194. #ifndef DES_RISC2
  195. #undef DES_RISC2
  196. #endif
  197.  
  198. #if defined(DES_RISC1) && defined(DES_RISC2)
  199. YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
  200. #endif
  201.  
  202. /* Unroll the inner loop, this sometimes helps, sometimes hinders.
  203.  * Very mucy CPU dependant */
  204. #ifndef DES_UNROLL
  205. #define DES_UNROLL
  206. #endif
  207.  
  208. /* These default values were supplied by
  209.  * Peter Gutman <pgut001@cs.auckland.ac.nz>
  210.  * They are only used if nothing else has been defined */
  211. #if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
  212. /* Special defines which change the way the code is built depending on the
  213.    CPU and OS.  For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
  214.    even newer MIPS CPU's, but at the moment one size fits all for
  215.    optimization options.  Older Sparc's work better with only UNROLL, but
  216.    there's no way to tell at compile time what it is you're running on */
  217.  
  218. #if defined( sun )        /* Newer Sparc's */
  219. #  define DES_PTR
  220. #  define DES_RISC1
  221. #  define DES_UNROLL
  222. #elif defined( __ultrix )    /* Older MIPS */
  223. #  define DES_PTR
  224. #  define DES_RISC2
  225. #  define DES_UNROLL
  226. #elif defined( __osf1__ )    /* Alpha */
  227. #  define DES_PTR
  228. #  define DES_RISC2
  229. #elif defined ( _AIX )        /* RS6000 */
  230.   /* Unknown */
  231. #elif defined( __hpux )        /* HP-PA */
  232.   /* Unknown */
  233. #elif defined( __aux )        /* 68K */
  234.   /* Unknown */
  235. #elif defined( __dgux )        /* 88K (but P6 in latest boxes) */
  236. #  define DES_UNROLL
  237. #elif defined( __sgi )        /* Newer MIPS */
  238. #  define DES_PTR
  239. #  define DES_RISC2
  240. #  define DES_UNROLL
  241. #elif defined(i386) || defined(__i386__)    /* x86 boxes, should be gcc */
  242. #  define DES_PTR
  243. #  define DES_RISC1
  244. #  define DES_UNROLL
  245. #endif /* Systems-specific speed defines */
  246. #endif
  247.  
  248. #endif /* DES_DEFAULT_OPTIONS */
  249. #endif /* HEADER_DES_LOCL_H */
  250.